package com.guli.secKill.feign;

import com.guli.common.pojo.vo.SecKillSessionAndRelationVo;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/*
 * @Author 罗俊
 * @date 2020/11/30 - 1:45 下午
 *
 */
@FeignClient(name = "coupon-service")
public interface CouponFeignClient {

    @GetMapping("/sms/seckillsession/getLatestSecKillSkuByDateInterval")
    @ApiOperation("获取最近时间的秒杀商品")
    public List<SecKillSessionAndRelationVo> getLatestSecKillSkuByDateInterval(@RequestParam("days") @ApiParam("最近几天") Integer days);
}
